import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'index',
      component: () => import('@/views/index.vue')
    },
    {
      path: '/activity',
      name: 'activity',
      component: () => import('@/views/activity.vue')
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('@/views/login.vue')
    },
    {
      path: '/trademark',
      name: 'trademark',
      component: () => import('@/views/trademark.vue')
    },
    {
      path: '/classify_detail',
      name: 'classify_detail',
      component: () => import('@/views/classify_detail.vue')
    },
    {
      path: '/trademark_seach',
      name: 'trademark_seach',
      component: () => import('@/views/trademark_seach.vue')
    },
    
    {
      path: '/m',
      name: 'm_index',
      redirect:'/m/home',
      component: () => import('@/views/m/index.vue'),
      children:[
        {
          path: '/m/home',
          name: 'm_home',
          component: () => import('@/views/m/home.vue')
        },
        {
          path: '/m/rule',
          name: 'm_rule',
          component: () => import('@/views/m/rule.vue')
        },
        {
          path:"/m/history_invite",
          name: 'm_history_invite',
          component: () => import('@/views/m/history_invite.vue')
        },
        {
          path:"/m/invite",
          name: 'm_invite',
          component: () => import('@/views/m/invite.vue')
        },
        {
          path:"/m/login",
          name: 'm_login',
          component: () => import('@/views/m/login.vue')
        },
        {
          path:"/m/register",
          name: 'm_register',
          component: () => import('@/views/m/register.vue')
        },
      ]
    },
    
    
  ]
})
